package com.bdcom.nms.NmsCollect.test.mib;

import org.opengoss.snmphibernate.api.SmiType;
import org.opengoss.snmphibernate.api.annotation.MibObjectType;
import org.opengoss.snmphibernate.api.annotation.MibObjectType.Access;
import org.opengoss.snmphibernate.api.annotation.MibTable;

@MibTable
public class Sample {
	@MibObjectType(oid = "1.3.6.1.2.1.1.3.0", smiType = SmiType.TIMETICKS, access = Access.READ)//$NON-NLS-1$
	private long sysuptime;

	public String getSysuptime() {
				
		//(sysuptime/1000*60*60);
		
		return (sysuptime/(100*60*60*24))+" days "+(sysuptime%(100*60*60*24))/(100*60*60)+" hours "+(sysuptime%(100*60*60))/(100*60)+" minutes "+(sysuptime%(100*60))/(100)+" seconds";
		
	}

	public void setSysuptime(long sysuptime) {
		this.sysuptime = sysuptime;
	}

}
